package T;

import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.stream.Collectors;

public class T {
    //测试git
    public static void main(String[] args) {
        HashMap<Integer, String> map = new HashMap<>();
        map.put(1, "1");
        map.put(2, "23");
        map.put(3, "3zhu2");
        map.put(4, "zhuzhu");
        List<String> zhu = map.values().stream().filter(s -> s.contains("2")).collect(Collectors.toList());
        System.out.println(zhu);

    }
}
